<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body onload="run()">
	正在销毁session,清除数据,
	<span id="span"></span>秒之后进入登记页面
	<%
	session.invalidate();
	response.setHeader("refresh", "3;url='index.jsp'");
%>
	<script type="text/javascript">
		var x = 3;
		function run() {
			// 获取到的是span标签的对象
			var span = document.getElementById("span");
			// 获取span标签中间的文本
			span.innerHTML = x;
			x--;
			// 再让run方法执行呢，一秒钟执行一次
			window.setTimeout("run()", 1000);
		}
	</script>
</body>
</html>